package com.example.user.util;


import com.alibaba.fastjson.JSONObject;
import com.example.user.bo.Person01BO;

import java.util.List;

public class TestMain2 {
    public static void main(String[] args) {
        Person01BO person01BO = JSONObject.parseObject("{\"sapId\":\"75\",\"orgId\":\"3705\"}",Person01BO.class);
        System.out.println(person01BO);
        List<Person01BO> person0BOAarry = JSONObject.parseArray("[{\"sapId\":\"75\",\"orgId\":\"3705\"},{\"sapId\":\"75\",\"orgId\":\"3705\"}]",Person01BO.class);
        System.out.println(person0BOAarry);

        System.out.println(JSONObject.toJSONString(person01BO));
    }
}
